var app = getApp();
Page({
  data: {
    localImg: app.globalData.staticimgUrl,  // 本地图片
  },
  getUserInfo: function(e) {
   

    if (e.detail.errMsg === 'getUserInfo:fail auth deny') {
      //拒绝授权
      return;
    } else {
      let userInfo = e.detail.userInfo;
      wx.setStorageSync('userInfo', userInfo);
      wx.reLaunch({
        url: '/pages/doctor-login/doctor-login',
      });
    }
  }
})